package org.ben.birthday.twentybirthday.service;

import org.ben.birthday.twentybirthday.entity.User;
import org.springframework.data.domain.Page;


/**
 * @Author: Ben
 * @Date: 2019/7/25 8:03
 */
public interface IAdministratorService {

    /**
     * 管理员添加用户IService
     * @param user
     * @return boolean
     */
    boolean insertUserService(User user);

    /**
     * 管理员根据用户Id删除用户IService
     * @param userId
     * @param userName
     * @return boolean
     */
    boolean deleteUserService(Integer userId,String userName);


    /**
     * 管理员对用户进行更改IService
     * @param user
     * @return boolean
     */
   boolean updateUserService(User user);

    /**
     *管理员分页查询用户数据IService
     * @param pageNumber
     * @param pageSize
     * @return List<User>
     */
    Page<User> selectUser(Integer pageNumber, Integer pageSize);

}
